package com.example.myapplication.entity;


import androidx.annotation.NonNull;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;

import java.util.Date;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Keep;

@Entity
public class Budget {

    @Id(autoincrement = true)
    private Long id;
    private double life;
    private double travel;
    private double food;
    private double fun;
    private double learn;
    private double close;
    private Date budgetDate;
    private String budgetRemarks;
    @Generated(hash = 731795734)
    public Budget(Long id, double life, double travel, double food, double fun, double learn, double close, Date budgetDate, String budgetRemarks) {
        this.id = id;
        this.life = life;
        this.travel = travel;
        this.food = food;
        this.fun = fun;
        this.learn = learn;
        this.close = close;
        this.budgetDate = budgetDate;
        this.budgetRemarks = budgetRemarks;
    }
    @Generated(hash = 1734026453)
    public Budget() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public double getLife() {
        return this.life;
    }
    public void setLife(double life) {
        this.life = life;
    }
    public double getTravel() {
        return this.travel;
    }
    public void setTravel(double travel) {
        this.travel = travel;
    }

    public double getFood() {
        return this.food;
    }
    public void setFood(double food) {
        this.food = food;
    }
    public double getFun() {
        return this.fun;
    }
    public void setFun(double fun) {
        this.fun = fun;
    }
    public double getLearn() {
        return this.learn;
    }
    public void setLearn(double learn) {
        this.learn = learn;
    }
    public double getClose() {
        return this.close;
    }
    public void setClose(double close) {
        this.close = close;
    }
    public Date getBudgetDate() {
        return this.budgetDate;
    }
    public void setBudgetDate(Date budgetDate) {
        this.budgetDate = budgetDate;
    }
    public String getBudgetRemarks() {
        return this.budgetRemarks;
    }
    public void setBudgetRemarks(String budgetRemarks) {
        this.budgetRemarks = budgetRemarks;
    }

    @NonNull
    @Override
    public String toString() {
        return "id:"+this.id+" life: "+this.life+" date:"+this.budgetDate;
    }
}
